<?php
$tdatavideo=array();
	$tdatavideo[".NumberOfChars"]=80; 
	$tdatavideo[".ShortName"]="video";
	$tdatavideo[".OwnerID"]="";
	$tdatavideo[".OriginalTable"]="video";


	
//	field labels
$fieldLabelsvideo = array();
if(mlang_getcurrentlang()=="English")
{
	$fieldLabelsvideo["English"]=array();
	$fieldToolTipsvideo["English"]=array();
	$fieldLabelsvideo["English"]["tieude"] = "Tieude";
	$fieldToolTipsvideo["English"]["tieude"] = "";
	$fieldLabelsvideo["English"]["hinhanh"] = "Hinhanh";
	$fieldToolTipsvideo["English"]["hinhanh"] = "";
	$fieldLabelsvideo["English"]["tenvideo"] = "Tenvideo";
	$fieldToolTipsvideo["English"]["tenvideo"] = "";
	if (count($fieldToolTipsvideo["English"])){
		$tdatavideo[".isUseToolTips"]=true;
	}
}


	
	$tdatavideo[".NCSearch"]=true;

	

$tdatavideo[".shortTableName"] = "video";
$tdatavideo[".nSecOptions"] = 0;
$tdatavideo[".recsPerRowList"] = 1;	
$tdatavideo[".tableGroupBy"] = "0";
$tdatavideo[".mainTableOwnerID"] = "";
$tdatavideo[".moveNext"] = 1;




$tdatavideo[".showAddInPopup"] = false;

$tdatavideo[".showEditInPopup"] = false;

$tdatavideo[".showViewInPopup"] = false;


$tdatavideo[".fieldsForRegister"] = array();

$tdatavideo[".listAjax"] = false;

	$tdatavideo[".audit"] = false;

	$tdatavideo[".locking"] = false;
	
$tdatavideo[".listIcons"] = true;
$tdatavideo[".edit"] = true;
$tdatavideo[".inlineEdit"] = true;
$tdatavideo[".view"] = true;

$tdatavideo[".exportTo"] = true;

$tdatavideo[".printFriendly"] = true;

$tdatavideo[".delete"] = true;

$tdatavideo[".showSimpleSearchOptions"] = false;

$tdatavideo[".showSearchPanel"] = true;


$tdatavideo[".isUseAjaxSuggest"] = true;

$tdatavideo[".rowHighlite"] = true;


// button handlers file names

$tdatavideo[".addPageEvents"] = false;

$tdatavideo[".arrKeyFields"][] = "tieude";
$tdatavideo[".arrKeyFields"][] = "hinhanh";
$tdatavideo[".arrKeyFields"][] = "tenvideo";

// use datepicker for search panel
$tdatavideo[".isUseCalendarForSearch"] = false;

// use timepicker for search panel
$tdatavideo[".isUseTimeForSearch"] = false;

$tdatavideo[".isUseiBox"] = false;



$tdatavideo[".isUseInlineAdd"] = true;

$tdatavideo[".isUseInlineEdit"] = true;
$tdatavideo[".isUseInlineJs"] = $tdatavideo[".isUseInlineAdd"] || $tdatavideo[".isUseInlineEdit"];

$tdatavideo[".allSearchFields"] = array();

$tdatavideo[".globSearchFields"][] = "tieude";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("tieude", $tdatavideo[".allSearchFields"]))
{
	$tdatavideo[".allSearchFields"][] = "tieude";	
}
$tdatavideo[".globSearchFields"][] = "hinhanh";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("hinhanh", $tdatavideo[".allSearchFields"]))
{
	$tdatavideo[".allSearchFields"][] = "hinhanh";	
}
$tdatavideo[".globSearchFields"][] = "tenvideo";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("tenvideo", $tdatavideo[".allSearchFields"]))
{
	$tdatavideo[".allSearchFields"][] = "tenvideo";	
}


$tdatavideo[".googleLikeFields"][] = "tieude";
$tdatavideo[".googleLikeFields"][] = "hinhanh";
$tdatavideo[".googleLikeFields"][] = "tenvideo";



$tdatavideo[".advSearchFields"][] = "tieude";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("tieude", $tdatavideo[".allSearchFields"])) 
{
	$tdatavideo[".allSearchFields"][] = "tieude";	
}
$tdatavideo[".advSearchFields"][] = "hinhanh";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("hinhanh", $tdatavideo[".allSearchFields"])) 
{
	$tdatavideo[".allSearchFields"][] = "hinhanh";	
}
$tdatavideo[".advSearchFields"][] = "tenvideo";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("tenvideo", $tdatavideo[".allSearchFields"])) 
{
	$tdatavideo[".allSearchFields"][] = "tenvideo";	
}

$tdatavideo[".isTableType"] = "list";


	

$tdatavideo[".isDisplayLoading"] = true;

$tdatavideo[".isResizeColumns"] = false;





$tdatavideo[".pageSize"] = 20;

$gstrOrderBy = "";
if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
	$gstrOrderBy = "order by ".$gstrOrderBy;
$tdatavideo[".strOrderBy"] = $gstrOrderBy;
	
$tdatavideo[".orderindexes"] = array();

$tdatavideo[".sqlHead"] = "SELECT tieude,  hinhanh,  tenvideo";
$tdatavideo[".sqlFrom"] = "FROM video";
$tdatavideo[".sqlWhereExpr"] = "";
$tdatavideo[".sqlTail"] = "";




//fill array of records per page for list and report without group fields
$arrRPP = array();
$arrRPP[] = 10;
$arrRPP[] = 20;
$arrRPP[] = 30;
$arrRPP[] = 50;
$arrRPP[] = 100;
$arrRPP[] = 500;
$arrRPP[] = -1;
$tdatavideo[".arrRecsPerPage"] = $arrRPP;

//fill array of groups per page for report with group fields
$arrGPP = array();
$arrGPP[] = 1;
$arrGPP[] = 3;
$arrGPP[] = 5;
$arrGPP[] = 10;
$arrGPP[] = 50;
$arrGPP[] = 100;
$arrGPP[] = -1;
$tdatavideo[".arrGroupsPerPage"] = $arrGPP;

	$tableKeys = array();
	$tableKeys[] = "tieude";
	$tableKeys[] = "hinhanh";
	$tableKeys[] = "tenvideo";
	$tdatavideo[".Keys"] = $tableKeys;

//	tieude
	$fdata = array();
	$fdata["strName"] = "tieude";
	$fdata["ownerTable"] = "video";
		$fdata["Label"]="Tieude"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "tieude";
	
		$fdata["FullName"]= "tieude";
	
		
		
		
		
		
				$fdata["Index"]= 1;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=200";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatavideo["tieude"]=$fdata;
//	hinhanh
	$fdata = array();
	$fdata["strName"] = "hinhanh";
	$fdata["ownerTable"] = "video";
		$fdata["Label"]="Hinhanh"; 
	
		
		$fdata["LinkPrefix"]="upload/"; 
	
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Document upload";
	$fdata["ViewFormat"]= "Document Download";
	
		
		
		
		
		
	$fdata["GoodName"]= "hinhanh";
	
		$fdata["FullName"]= "hinhanh";
	
		
		
		
		
		
			$fdata["UploadFolder"]="upload"; 
		$fdata["Index"]= 2;
				
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatavideo["hinhanh"]=$fdata;
//	tenvideo
	$fdata = array();
	$fdata["strName"] = "tenvideo";
	$fdata["ownerTable"] = "video";
		$fdata["Label"]="Tenvideo"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "tenvideo";
	
		$fdata["FullName"]= "tenvideo";
	
		
		
		
		
		
				$fdata["Index"]= 3;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=200";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatavideo["tenvideo"]=$fdata;

	
$tables_data["video"]=&$tdatavideo;
$field_labels["video"] = &$fieldLabelsvideo;
$fieldToolTips["video"] = &$fieldToolTipsvideo;

// -----------------start  prepare master-details data arrays ------------------------------//
// tables which are detail tables for current table (master)
$detailsTablesData["video"] = array();

	
// tables which are master tables for current table (detail)
$masterTablesData["video"] = array();

// -----------------end  prepare master-details data arrays ------------------------------//

require_once(getabspath("classes/sql.php"));










$proto0=array();
$proto0["m_strHead"] = "SELECT";
$proto0["m_strFieldList"] = "tieude,  hinhanh,  tenvideo";
$proto0["m_strFrom"] = "FROM video";
$proto0["m_strWhere"] = "";
$proto0["m_strOrderBy"] = "";
$proto0["m_strTail"] = "";
$proto1=array();
$proto1["m_sql"] = "";
$proto1["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto1["m_column"]=$obj;
$proto1["m_contained"] = array();
$proto1["m_strCase"] = "";
$proto1["m_havingmode"] = "0";
$proto1["m_inBrackets"] = "0";
$proto1["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto1);

$proto0["m_where"] = $obj;
$proto3=array();
$proto3["m_sql"] = "";
$proto3["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto3["m_column"]=$obj;
$proto3["m_contained"] = array();
$proto3["m_strCase"] = "";
$proto3["m_havingmode"] = "0";
$proto3["m_inBrackets"] = "0";
$proto3["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto3);

$proto0["m_having"] = $obj;
$proto0["m_fieldlist"] = array();
						$proto5=array();
			$obj = new SQLField(array(
	"m_strName" => "tieude",
	"m_strTable" => "video"
));

$proto5["m_expr"]=$obj;
$proto5["m_alias"] = "";
$obj = new SQLFieldListItem($proto5);

$proto0["m_fieldlist"][]=$obj;
						$proto7=array();
			$obj = new SQLField(array(
	"m_strName" => "hinhanh",
	"m_strTable" => "video"
));

$proto7["m_expr"]=$obj;
$proto7["m_alias"] = "";
$obj = new SQLFieldListItem($proto7);

$proto0["m_fieldlist"][]=$obj;
						$proto9=array();
			$obj = new SQLField(array(
	"m_strName" => "tenvideo",
	"m_strTable" => "video"
));

$proto9["m_expr"]=$obj;
$proto9["m_alias"] = "";
$obj = new SQLFieldListItem($proto9);

$proto0["m_fieldlist"][]=$obj;
$proto0["m_fromlist"] = array();
												$proto11=array();
$proto11["m_link"] = "SQLL_MAIN";
			$proto12=array();
$proto12["m_strName"] = "video";
$proto12["m_columns"] = array();
$proto12["m_columns"][] = "id";
$proto12["m_columns"][] = "tieude";
$proto12["m_columns"][] = "hinhanh";
$proto12["m_columns"][] = "tenvideo";
$obj = new SQLTable($proto12);

$proto11["m_table"] = $obj;
$proto11["m_alias"] = "";
$proto13=array();
$proto13["m_sql"] = "";
$proto13["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto13["m_column"]=$obj;
$proto13["m_contained"] = array();
$proto13["m_strCase"] = "";
$proto13["m_havingmode"] = "0";
$proto13["m_inBrackets"] = "0";
$proto13["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto13);

$proto11["m_joinon"] = $obj;
$obj = new SQLFromListItem($proto11);

$proto0["m_fromlist"][]=$obj;
$proto0["m_groupby"] = array();
$proto0["m_orderby"] = array();
$obj = new SQLQuery($proto0);

$queryData_video = $obj;
$tdatavideo[".sqlquery"] = $queryData_video;

$tableEvents["video"] = new eventsBase;

?>
